<?php
/* @var $this TenderController */
/* @var $model Tender */

$this->breadcrumbs=array(
	Yii::t('tender','Tenders')=>array('admin'),
	$model->tid,
);

$this->menu=array(
	array('label'=>Yii::t('tender','Create Tender'), 'url'=>array('create')),
	array('label'=>Yii::t('tender','Update Tender'), 'url'=>array('update', 'id'=>$model->tid)),
	array('label'=>Yii::t('tender','Delete Tender'), 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->tid),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>Yii::t('tender','Manage Tender'), 'url'=>array('admin')),
);
?>

<h1><?php echo Yii::t('tender','View').Yii::t('tender','Tender'); ?> #<?php echo $model->tid; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'tid',
		'project.projectname',
		'tendername',
		'rid',
		array(
			'label'=>Yii::t('tender','Tenderer'),
			'value'=>$model->tenderer->name,
		),
		array(
			'label'=>Yii::t('tender','Tendermode'),
			'value'=>Tender::itemAlias('ModeStatus',$model->mode),
		),
		'saletime',
		'endtime',
		'opentime',
		array(
			'label'=>Yii::t('tender','Manager'),
			'value'=>$model->user->username,
		),
		'department',
		'status',
	),
)); ?>
